/*
 * Copyright (C) 2003, Velocityme Partnership
 * ContactDetailValueToString.java
 *
 * Created on 31 December 2003, 04:25
 */

package com.velocityme.valueobjects;

/**
 *
 * @author  Robert Crida Work
 */
public class ContactDetailValueToString extends ContactDetailValue implements Comparable {
    
    /** Creates a new instance of ContactDetailValueToString */
    public ContactDetailValueToString(ContactDetailValue p_value) {
        super(p_value);
    }
    
    public int compareTo(Object o) {
        if (o instanceof ContactDetailValue) {
            ContactDetailValue oth = (ContactDetailValue)o;
            return getContactDetailTypeValue().getSequenceNumber().compareTo(oth.getContactDetailTypeValue().getSequenceNumber());
        }
        return 0;
    }
    
}
